package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.BasicPositionmaterial;
import cn.stylefeng.guns.modular.basic.model.params.BasicPositionmaterialParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicPositionmaterialResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 库位物料表 服务类
 */
public interface BasicPositionmaterialService extends IService<BasicPositionmaterial> {

    /**
     * 新增
     */
    void add(BasicPositionmaterialParam param);

    /**
     * 删除
     */
    void delete(BasicPositionmaterialParam param);

    /**
     * 更新
     */
    void update(BasicPositionmaterialParam param);

    /**
     * 查询单条数据，Specification模式
     */
    BasicPositionmaterialResult findBySpec(BasicPositionmaterialParam param,Long operateId);

    /**
     * 查询列表，Specification模式
     */
    List<BasicPositionmaterialResult> findListBySpec(BasicPositionmaterialParam param);

    /**
     * 查询分页数据，Specification模式
     */
     LayuiPageInfo findPageBySpec(BasicPositionmaterialParam param,String condition);

}
